<?php
require_once '../conf.php';
require_once PATH_TO_SOURCE.'/model/model.php';
require_once PATH_TO_SOURCE.'/controller/controller.php';



$url = $_GET['url'];


$a = new article($url);

$article = $a->getArticle(); 

?>


<div class="blogpost-page main grid-wrap">

		<header class="grid col-full">
			<hr>
			<p class="fleft"><?php echo $article[0]['title']; ?></p>
		</header>
		
				
		<section class="grid col-three-quarters mq2-col-two-thirds mq3-col-full">
			
				<article class="post post-single">
					<h2><a href="<?php echo $article[0]['url']; ?>" class="post-title"><?php echo $article[0]['title']; ?></a></h2>
					<div class="meta">
						<p>Napisane <span class="time"><?php echo substr($article[0]['post_date'],0,10); ?></span> przez Kalorie .</p>
					</div>
					<div class="entry">
						<?php echo $article[0]['article']; ?>
					</div>
					
				</article>
					
			
		
		</section>

	
		
	</div> <!--main-->